<?php

namespace App\Http\Controllers;

use App\User;
use Illuminate\Http\Request;

class UserController extends Controller
{
    public function show(Request $request,$id)
    {
//        $path = $request->path();
//        $url = $request->url();
//        $url_with_query = $request->fullUrl();
//        $method = $request->method(); // GET/POST
//        $input = $request->input('products.0.name');
//        $names = $request->input('products.*.name');
        $query = $request->query();

        dd($request);
        return view('user.profile', ['user' => User::findOrFail($id)]);
    }
}
